package org.example.adapter.objadapter;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author
 * @description
 */
@SpringBootTest
public class Client {


    @Test
    public void test() {
        System.out.println("==========使用类适配器模式=========");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
